package com.itheima.sso.mapper;

import com.itheima.model.common.pojos.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select *from user where username=#{username} and password=#{password}")
    User getUser(User user);

    @Select("select *from user where uid =#{id}")
    User getById(String id);
}
